#include <iostream>

using namespace std;

int main()  {
    int n;
    cout << "n = ";
    cin >> n;
    if (n > 0)
    n = n + 1;
    else n= n - 2;

    cout << n;

    return 0;
}
